import 'jointjs/dist/joint.core.css';

// 类库 包含: Paper Graph Cell CellView Element Link 等等
import { dia } from 'jointjs/src/core.mjs';
// 样式库 包含多个分组(basic standard custom ...)
import * as standard from 'jointjs/src/shapes/standard.mjs';
import * as layout from 'jointjs/src/layout/index.mjs';
import * as highlighters from 'jointjs/src/highlighters/index.mjs'
import * as util from 'jointjs/src/util/util.mjs'
import * as linkTools from 'jointjs/src/linkTools/index.mjs'

export default {
	install: function (Vue) {
		let joint = { dia };
		joint.shapes = { standard };
		joint.layout = layout;
		joint.highlighters = highlighters
		joint.util = util
		joint.linkTools = linkTools
		Object.defineProperty(Vue.prototype, '$joint', { value: joint });
	}
};
